<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    

<script>
// 函数的属性：
function test(a,b,c){
    console.log( a+b+c );
    return 1;
}
//console.log(res);
var haha = test();
console.log(haha);

// 函数的name属性，返回函数的名称
//console.log( test.name );// 'test'

// 函数的length属性，返回函数的形参个数
//console.log( test.length );// 3



</script>
</body>
</html>